#  This material contains proprietary software of Entropic Speech, Inc.   
#  Any reproduction, distribution, or publication without the the prior	   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice			
# 								
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
# 				
#
# makefile for classify %W% %G% ESI
 	
CFLAGS = -DSCCS 
SPSLIB = /usr/esps/lib/libespsg.a
MANDIR = /usr/esps/man
SINC   = /usr/esps/include/esps
BINDIR = /usr/esps/bin
OLDBIN = /usr/esps/bin/old
LINT = att lint
LINTLIB = /usr/esps/lib/llib-lespsg.ln
PROGMOD = 0750
MANMOD = 0640
#
#

classify:	classify.o $(SPSLIB)
	cc classify.o $(SPSLIB) -lmr -lm -o classify

classify.o: $(SINC)/sps.h $(SINC)/sd.h

clean:
	rm -f classify.o classify

lint:	classify.c 
	lint -b $(LINTLIB) -lm $(OSFLAGS) classify.c > lint

install: classify
	-mv -f $(BINDIR)/classify $(OLDBIN)/classify
	-chmod $(PROGMOD) $(OLDBIN)/classify
	mv classify $(BINDIR)/classify
	-strip $(BINDIR)/classify
	chmod $(PROGMOD) $(BINDIR)/classify
	-diffmk  $(MANDIR)/man1/classify.1 classify.1 man.diff
	@echo diffmked man in man.diff
	-rm -f $(MANDIR)/man1/classify.1
	cp classify.1 $(MANDIR)/man1/classify.1
	chmod $(MANMOD) $(MANDIR)/man1/classify.1
